package com.apps.globals.color.service;

import com.apps.globals.color.model.po.KupaColor;
import com.apps.globals.color.model.vo.RGB;
import com.apps.sworld.dao.sGod;
import com.baomidou.mybatisplus.extension.service.IService;

import java.awt.image.BufferedImage;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 大鹏
 * @since 2020-11-04
 */
public interface IKupaColorService extends sGod<KupaColor> {

    /**
     * 识别出颜色主色调
     * @param bufferedImage
     * @param rgbreject
     * @return
     */
    String recognition(BufferedImage bufferedImage, RGB... rgbreject);

    /**
     * 寻找到最近似的基本颜色
     * @param rgb
     * @return
     */
    RGB findSimilar(RGB rgb);
}
